package com.bsoft.hospitalchs.model;

import java.util.List;

/**
 * Created by 泅渡者
 * Created on 2017/5/16.
 */

public class CharacterResBean {

    /**
     * body : {"userPhoto":"photo/default.jpg","tokens":[{"id":8,"userId":"1201","roleId":"phis.64","manageUnitId":"110000001","organId":"phis.110000","domain":"phis","logoff":"0","displayName":"晞景北苑诊所-机构维护角色","role":{"id":"phis.64","name":"机构维护角色","pageCount":0,"type":"post","lastModify":1494230892000},"userName":"北苑管理员","manageUnitName":"晞景北苑诊所","roleName":"机构维护角色","manageUnit":{"id":"110000001","name":"晞景北苑诊所","type":"D","ref":"1100001001","pyCode":"xjbyzs"},"organName":"晞景儿童诊所(中心)","properties":{"biz_MedicalId":"8","treasuryLbxh":"0","treasuryName":"北苑新物资库房","topUnitId":"110000","reg_departmentId":"1","treasuryHzpd":"0","treasuryEjkf":"0","treasuryKfzb":"169,170","treasuryZjyf":"","pharmacyId":"1","treasuryKflb":"1","treasuryKfzt":"1","treasuryCkfs":"2","treasuryCsbz":"1","treasuryPdzt":"0","treasuryWxkf":"0","treasuryId":224,"biz_departmentId":"2","treasuryGlkf":"1","treasuryZjbz":"0"},"lastLoginTime":"2017-05-16 09:13:50"},{"properties":{"biz_MedicalId":"8","treasuryLbxh":"0","treasuryName":"北苑新物资库房","topUnitId":"110000","reg_departmentId":"1","treasuryHzpd":"0","treasuryEjkf":"0","treasuryKfzb":"169,170","treasuryZjyf":"","pharmacyId":"1","treasuryKflb":"1","treasuryKfzt":"1","treasuryCkfs":"2","treasuryCsbz":"1","treasuryPdzt":"0","treasuryWxkf":"0","treasuryId":224,"biz_departmentId":"2","treasuryGlkf":"1","treasuryZjbz":"0"},"id":9,"userId":"1201","roleId":"phis.50","manageUnitId":"110000001","organId":"phis.110000","lastLoginTime":"2017-05-16 09:13:50","domain":"phis","logoff":"0","displayName":"晞景北苑诊所-全科门诊医生角色","role":{"id":"phis.50","properties":{"version":"1388456433586"},"name":"全科门诊医生角色","pageCount":2,"type":"","lastModify":1494230892000},"userName":"北苑管理员","manageUnitName":"晞景北苑诊所","roleName":"全科门诊医生角色","manageUnit":{"id":"110000001","name":"晞景北苑诊所","type":"D","ref":"1100001001","pyCode":"xjbyzs"},"organName":"晞景儿童诊所(中心)"},{"id":41,"userId":"1201","roleId":"phis.73","manageUnitId":"110000001","organId":"phis.110000","domain":"phis","logoff":"0","displayName":"晞景北苑诊所-医技角色","role":{"id":"phis.73","name":"医技角色","pageCount":0,"type":"post","lastModify":1494230892000},"userName":"北苑管理员","manageUnitName":"晞景北苑诊所","roleName":"医技角色","manageUnit":{"id":"110000001","name":"晞景北苑诊所","type":"D","ref":"1100001001","pyCode":"xjbyzs"},"organName":"晞景儿童诊所(中心)"}]}
     * code : 200
     */

    private BodyBean body;
    private int code;

    public BodyBean getBody() {
        return body;
    }

    public void setBody(BodyBean body) {
        this.body = body;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public static class BodyBean {
        /**
         * userPhoto : photo/default.jpg
         * tokens : [{"id":8,"userId":"1201","roleId":"phis.64","manageUnitId":"110000001","organId":"phis.110000","domain":"phis","logoff":"0","displayName":"晞景北苑诊所-机构维护角色","role":{"id":"phis.64","name":"机构维护角色","pageCount":0,"type":"post","lastModify":1494230892000},"userName":"北苑管理员","manageUnitName":"晞景北苑诊所","roleName":"机构维护角色","manageUnit":{"id":"110000001","name":"晞景北苑诊所","type":"D","ref":"1100001001","pyCode":"xjbyzs"},"organName":"晞景儿童诊所(中心)"},{"properties":{"biz_MedicalId":"8","treasuryLbxh":"0","treasuryName":"北苑新物资库房","topUnitId":"110000","reg_departmentId":"1","treasuryHzpd":"0","treasuryEjkf":"0","treasuryKfzb":"169,170","treasuryZjyf":"","pharmacyId":"1","treasuryKflb":"1","treasuryKfzt":"1","treasuryCkfs":"2","treasuryCsbz":"1","treasuryPdzt":"0","treasuryWxkf":"0","treasuryId":224,"biz_departmentId":"2","treasuryGlkf":"1","treasuryZjbz":"0"},"id":9,"userId":"1201","roleId":"phis.50","manageUnitId":"110000001","organId":"phis.110000","lastLoginTime":"2017-05-16 09:13:50","domain":"phis","logoff":"0","displayName":"晞景北苑诊所-全科门诊医生角色","role":{"id":"phis.50","properties":{"version":"1388456433586"},"name":"全科门诊医生角色","pageCount":2,"type":"","lastModify":1494230892000},"userName":"北苑管理员","manageUnitName":"晞景北苑诊所","roleName":"全科门诊医生角色","manageUnit":{"id":"110000001","name":"晞景北苑诊所","type":"D","ref":"1100001001","pyCode":"xjbyzs"},"organName":"晞景儿童诊所(中心)"},{"id":41,"userId":"1201","roleId":"phis.73","manageUnitId":"110000001","organId":"phis.110000","domain":"phis","logoff":"0","displayName":"晞景北苑诊所-医技角色","role":{"id":"phis.73","name":"医技角色","pageCount":0,"type":"post","lastModify":1494230892000},"userName":"北苑管理员","manageUnitName":"晞景北苑诊所","roleName":"医技角色","manageUnit":{"id":"110000001","name":"晞景北苑诊所","type":"D","ref":"1100001001","pyCode":"xjbyzs"},"organName":"晞景儿童诊所(中心)"}]
         */

        private String userPhoto;
        private List<TokensBean> tokens;

        public String getUserPhoto() {
            return userPhoto;
        }

        public void setUserPhoto(String userPhoto) {
            this.userPhoto = userPhoto;
        }

        public List<TokensBean> getTokens() {
            return tokens;
        }

        public void setTokens(List<TokensBean> tokens) {
            this.tokens = tokens;
        }

        public static class TokensBean {
            /**
             * id : 8
             * userId : 1201
             * roleId : phis.64
             * manageUnitId : 110000001
             * organId : phis.110000
             * domain : phis
             * logoff : 0
             * displayName : 晞景北苑诊所-机构维护角色
             * role : {"id":"phis.64","name":"机构维护角色","pageCount":0,"type":"post","lastModify":1494230892000}
             * userName : 北苑管理员
             * manageUnitName : 晞景北苑诊所
             * roleName : 机构维护角色
             * manageUnit : {"id":"110000001","name":"晞景北苑诊所","type":"D","ref":"1100001001","pyCode":"xjbyzs"}
             * organName : 晞景儿童诊所(中心)
             * properties : {"biz_MedicalId":"8","treasuryLbxh":"0","treasuryName":"北苑新物资库房","topUnitId":"110000","reg_departmentId":"1","treasuryHzpd":"0","treasuryEjkf":"0","treasuryKfzb":"169,170","treasuryZjyf":"","pharmacyId":"1","treasuryKflb":"1","treasuryKfzt":"1","treasuryCkfs":"2","treasuryCsbz":"1","treasuryPdzt":"0","treasuryWxkf":"0","treasuryId":224,"biz_departmentId":"2","treasuryGlkf":"1","treasuryZjbz":"0"}
             * lastLoginTime : 2017-05-16 09:13:50
             */

            private int id;
            private String userId;
            private String roleId;
            private String manageUnitId;
            private String organId;
            private String domain;
            private String logoff;
            private String displayName;
            private RoleBean role;
            private String userName;
            private String manageUnitName;
            private String roleName;
            private ManageUnitBean manageUnit;
            private String organName;
            private PropertiesBean properties;
            private String lastLoginTime;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getUserId() {
                return userId;
            }

            public void setUserId(String userId) {
                this.userId = userId;
            }

            public String getRoleId() {
                return roleId;
            }

            public void setRoleId(String roleId) {
                this.roleId = roleId;
            }

            public String getManageUnitId() {
                return manageUnitId;
            }

            public void setManageUnitId(String manageUnitId) {
                this.manageUnitId = manageUnitId;
            }

            public String getOrganId() {
                return organId;
            }

            public void setOrganId(String organId) {
                this.organId = organId;
            }

            public String getDomain() {
                return domain;
            }

            public void setDomain(String domain) {
                this.domain = domain;
            }

            public String getLogoff() {
                return logoff;
            }

            public void setLogoff(String logoff) {
                this.logoff = logoff;
            }

            public String getDisplayName() {
                return displayName;
            }

            public void setDisplayName(String displayName) {
                this.displayName = displayName;
            }

            public RoleBean getRole() {
                return role;
            }

            public void setRole(RoleBean role) {
                this.role = role;
            }

            public String getUserName() {
                return userName;
            }

            public void setUserName(String userName) {
                this.userName = userName;
            }

            public String getManageUnitName() {
                return manageUnitName;
            }

            public void setManageUnitName(String manageUnitName) {
                this.manageUnitName = manageUnitName;
            }

            public String getRoleName() {
                return roleName;
            }

            public void setRoleName(String roleName) {
                this.roleName = roleName;
            }

            public ManageUnitBean getManageUnit() {
                return manageUnit;
            }

            public void setManageUnit(ManageUnitBean manageUnit) {
                this.manageUnit = manageUnit;
            }

            public String getOrganName() {
                return organName;
            }

            public void setOrganName(String organName) {
                this.organName = organName;
            }

            public PropertiesBean getProperties() {
                return properties;
            }

            public void setProperties(PropertiesBean properties) {
                this.properties = properties;
            }

            public String getLastLoginTime() {
                return lastLoginTime;
            }

            public void setLastLoginTime(String lastLoginTime) {
                this.lastLoginTime = lastLoginTime;
            }

            public static class RoleBean {
                /**
                 * id : phis.64
                 * name : 机构维护角色
                 * pageCount : 0
                 * type : post
                 * lastModify : 1494230892000
                 */

                private String id;
                private String name;
                private int pageCount;
                private String type;
                private long lastModify;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public int getPageCount() {
                    return pageCount;
                }

                public void setPageCount(int pageCount) {
                    this.pageCount = pageCount;
                }

                public String getType() {
                    return type;
                }

                public void setType(String type) {
                    this.type = type;
                }

                public long getLastModify() {
                    return lastModify;
                }

                public void setLastModify(long lastModify) {
                    this.lastModify = lastModify;
                }

                @Override
                public String toString() {
                    return "RoleBean{" +
                            "id='" + id + '\'' +
                            ", name='" + name + '\'' +
                            ", pageCount=" + pageCount +
                            ", type='" + type + '\'' +
                            ", lastModify=" + lastModify +
                            '}';
                }
            }

            public static class ManageUnitBean {
                /**
                 * id : 110000001
                 * name : 晞景北苑诊所
                 * type : D
                 * ref : 1100001001
                 * pyCode : xjbyzs
                 */

                private String id;
                private String name;
                private String type;
                private String ref;
                private String pyCode;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getType() {
                    return type;
                }

                public void setType(String type) {
                    this.type = type;
                }

                public String getRef() {
                    return ref;
                }

                public void setRef(String ref) {
                    this.ref = ref;
                }

                public String getPyCode() {
                    return pyCode;
                }

                public void setPyCode(String pyCode) {
                    this.pyCode = pyCode;
                }

                @Override
                public String toString() {
                    return "ManageUnitBean{" +
                            "id='" + id + '\'' +
                            ", name='" + name + '\'' +
                            ", type='" + type + '\'' +
                            ", ref='" + ref + '\'' +
                            ", pyCode='" + pyCode + '\'' +
                            '}';
                }
            }

            public static class PropertiesBean {
                /**
                 * biz_MedicalId : 8
                 * treasuryLbxh : 0
                 * treasuryName : 北苑新物资库房
                 * topUnitId : 110000
                 * reg_departmentId : 1
                 * treasuryHzpd : 0
                 * treasuryEjkf : 0
                 * treasuryKfzb : 169,170
                 * treasuryZjyf :
                 * pharmacyId : 1
                 * treasuryKflb : 1
                 * treasuryKfzt : 1
                 * treasuryCkfs : 2
                 * treasuryCsbz : 1
                 * treasuryPdzt : 0
                 * treasuryWxkf : 0
                 * treasuryId : 224
                 * biz_departmentId : 2
                 * treasuryGlkf : 1
                 * treasuryZjbz : 0
                 */

                private String biz_MedicalId;
                private String treasuryLbxh;
                private String treasuryName;
                private String topUnitId;
                private String reg_departmentId;
                private String treasuryHzpd;
                private String treasuryEjkf;
                private String treasuryKfzb;
                private String treasuryZjyf;
                private String pharmacyId;
                private String treasuryKflb;
                private String treasuryKfzt;
                private String treasuryCkfs;
                private String treasuryCsbz;
                private String treasuryPdzt;
                private String treasuryWxkf;
                private int treasuryId;
                private String biz_departmentId;
                private String treasuryGlkf;
                private String treasuryZjbz;

                public String getBiz_MedicalId() {
                    return biz_MedicalId;
                }

                public void setBiz_MedicalId(String biz_MedicalId) {
                    this.biz_MedicalId = biz_MedicalId;
                }

                public String getTreasuryLbxh() {
                    return treasuryLbxh;
                }

                public void setTreasuryLbxh(String treasuryLbxh) {
                    this.treasuryLbxh = treasuryLbxh;
                }

                public String getTreasuryName() {
                    return treasuryName;
                }

                public void setTreasuryName(String treasuryName) {
                    this.treasuryName = treasuryName;
                }

                public String getTopUnitId() {
                    return topUnitId;
                }

                public void setTopUnitId(String topUnitId) {
                    this.topUnitId = topUnitId;
                }

                public String getReg_departmentId() {
                    return reg_departmentId;
                }

                public void setReg_departmentId(String reg_departmentId) {
                    this.reg_departmentId = reg_departmentId;
                }

                public String getTreasuryHzpd() {
                    return treasuryHzpd;
                }

                public void setTreasuryHzpd(String treasuryHzpd) {
                    this.treasuryHzpd = treasuryHzpd;
                }

                public String getTreasuryEjkf() {
                    return treasuryEjkf;
                }

                public void setTreasuryEjkf(String treasuryEjkf) {
                    this.treasuryEjkf = treasuryEjkf;
                }

                public String getTreasuryKfzb() {
                    return treasuryKfzb;
                }

                public void setTreasuryKfzb(String treasuryKfzb) {
                    this.treasuryKfzb = treasuryKfzb;
                }

                public String getTreasuryZjyf() {
                    return treasuryZjyf;
                }

                public void setTreasuryZjyf(String treasuryZjyf) {
                    this.treasuryZjyf = treasuryZjyf;
                }

                public String getPharmacyId() {
                    return pharmacyId;
                }

                public void setPharmacyId(String pharmacyId) {
                    this.pharmacyId = pharmacyId;
                }

                public String getTreasuryKflb() {
                    return treasuryKflb;
                }

                public void setTreasuryKflb(String treasuryKflb) {
                    this.treasuryKflb = treasuryKflb;
                }

                public String getTreasuryKfzt() {
                    return treasuryKfzt;
                }

                public void setTreasuryKfzt(String treasuryKfzt) {
                    this.treasuryKfzt = treasuryKfzt;
                }

                public String getTreasuryCkfs() {
                    return treasuryCkfs;
                }

                public void setTreasuryCkfs(String treasuryCkfs) {
                    this.treasuryCkfs = treasuryCkfs;
                }

                public String getTreasuryCsbz() {
                    return treasuryCsbz;
                }

                public void setTreasuryCsbz(String treasuryCsbz) {
                    this.treasuryCsbz = treasuryCsbz;
                }

                public String getTreasuryPdzt() {
                    return treasuryPdzt;
                }

                public void setTreasuryPdzt(String treasuryPdzt) {
                    this.treasuryPdzt = treasuryPdzt;
                }

                public String getTreasuryWxkf() {
                    return treasuryWxkf;
                }

                public void setTreasuryWxkf(String treasuryWxkf) {
                    this.treasuryWxkf = treasuryWxkf;
                }

                public int getTreasuryId() {
                    return treasuryId;
                }

                public void setTreasuryId(int treasuryId) {
                    this.treasuryId = treasuryId;
                }

                public String getBiz_departmentId() {
                    return biz_departmentId;
                }

                public void setBiz_departmentId(String biz_departmentId) {
                    this.biz_departmentId = biz_departmentId;
                }

                public String getTreasuryGlkf() {
                    return treasuryGlkf;
                }

                public void setTreasuryGlkf(String treasuryGlkf) {
                    this.treasuryGlkf = treasuryGlkf;
                }

                public String getTreasuryZjbz() {
                    return treasuryZjbz;
                }

                public void setTreasuryZjbz(String treasuryZjbz) {
                    this.treasuryZjbz = treasuryZjbz;
                }

                @Override
                public String toString() {
                    return "PropertiesBean{" +
                            "biz_MedicalId='" + biz_MedicalId + '\'' +
                            ", treasuryLbxh='" + treasuryLbxh + '\'' +
                            ", treasuryName='" + treasuryName + '\'' +
                            ", topUnitId='" + topUnitId + '\'' +
                            ", reg_departmentId='" + reg_departmentId + '\'' +
                            ", treasuryHzpd='" + treasuryHzpd + '\'' +
                            ", treasuryEjkf='" + treasuryEjkf + '\'' +
                            ", treasuryKfzb='" + treasuryKfzb + '\'' +
                            ", treasuryZjyf='" + treasuryZjyf + '\'' +
                            ", pharmacyId='" + pharmacyId + '\'' +
                            ", treasuryKflb='" + treasuryKflb + '\'' +
                            ", treasuryKfzt='" + treasuryKfzt + '\'' +
                            ", treasuryCkfs='" + treasuryCkfs + '\'' +
                            ", treasuryCsbz='" + treasuryCsbz + '\'' +
                            ", treasuryPdzt='" + treasuryPdzt + '\'' +
                            ", treasuryWxkf='" + treasuryWxkf + '\'' +
                            ", treasuryId=" + treasuryId +
                            ", biz_departmentId='" + biz_departmentId + '\'' +
                            ", treasuryGlkf='" + treasuryGlkf + '\'' +
                            ", treasuryZjbz='" + treasuryZjbz + '\'' +
                            '}';
                }
            }

            @Override
            public String toString() {
                return "TokensBean{" +
                        "id=" + id +
                        ", userId='" + userId + '\'' +
                        ", roleId='" + roleId + '\'' +
                        ", manageUnitId='" + manageUnitId + '\'' +
                        ", organId='" + organId + '\'' +
                        ", domain='" + domain + '\'' +
                        ", logoff='" + logoff + '\'' +
                        ", displayName='" + displayName + '\'' +
                        ", role=" + role +
                        ", userName='" + userName + '\'' +
                        ", manageUnitName='" + manageUnitName + '\'' +
                        ", roleName='" + roleName + '\'' +
                        ", manageUnit=" + manageUnit +
                        ", organName='" + organName + '\'' +
                        ", properties=" + properties +
                        ", lastLoginTime='" + lastLoginTime + '\'' +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "BodyBean{" +
                    "userPhoto='" + userPhoto + '\'' +
                    ", tokens=" + tokens +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "CharacterResBean{" +
                "body=" + body +
                ", code=" + code +
                '}';
    }
}
